package com.li.factory.method;

public class Client {
    public static void main(String[] args) {
        TankFactory factory1 = new TankFactory();
        Weapon tank = factory1.get();
        tank.attack();

        WeaponFactory factory = new GunFactory();
        Weapon gun = factory.get();
        gun.attack();
    }
}
